-- random_skill
-- create by panyl
-- 道具：  致命伤害

return {
    apply = function(source, target, classId, value)
        -- 随机技能
        table.sort(value);

        local rand = DungeonM.getRandSeed("property_rand_skill") % #value;
        local skillId = value[rand + 1];

        SkillM.apply(source, target, skillId, CombatM.getRound());

        -- 抛出使用道具施法事件
        EventMgr.fire(event.PROPERTY_SKILL, { ["classId"] = classId, ["target"] = target, ["skillId"] = skillId });
    end,
};
